/*
 * GSPass-main.cpp
 *
 *  Created on: Dec 12, 2014
 *      Authors: Avihay Avitan & Stefan Farcas
 */
#include "CoreController/CoreController.h"

using namespace CoreSpace;
CoreController * controller;

void my_function(int sig){
	std::cout << "" << std::endl ;
	delete(controller);
	getchar();
}

int main ()
{
	controller = new CoreController();
	signal(SIGINT, my_function);


	if (controller->init())
		controller->run();
	else
		std::cout << "Failed to initialize system, shutting down system." << std::endl ;


	return 0;
}
